#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
typedef long long ll;

int main()
{
    double k = 0;
    int n = 0;
    double s = 0;
    cin >> k;
    while (s <= k)
    {
        n++;
        s += (1.0 / n);
    }
    cout << n << endl;
    return 0;
}
